package com.guigu.www.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.www.pojo.MManufacture;
import org.apache.ibatis.annotations.Param;

public interface MManufactureMapper extends BaseMapper<MManufacture> {
    //查询流水号
    public String getLiushuiManufacture();
    //查询当前生产登记的产品和工序
    public MManufacture queryByMmanufacturebymanufactureId(String manufactureId);
    //登记 修改总表数据
    public void updateMmanufacturebyid(Integer id);
    //修改为待登记
    public void updatemmanufacturestatus(@Param("mManufacture") MManufacture mManufacture,@Param("parentid") int parentid);
    //查询当前总表数据
    public MManufacture queryBymmanfactherbyid(Integer parentId);
    //交接登记成功 修改总表状态为等待登记
    public void updatemprocedurestatus(Integer parentId);
    //最后登记查询走表数据
    public MManufacture querybymanufactureId(String manufactureId);
    //完成
    public void updatemprocedurestatuson(@Param("parentId") Integer parentId,@Param("realamount") Integer realamount);
}
